package com.wushi.emeeting.service;

import com.wushi.emeeting.dao.DocumentDAO;
import com.wushi.emeeting.model.Document;

public class DocumentSer {
	private DocumentDAO docDao;
	
	public DocumentSer(){
		docDao= new DocumentDAO();
	
	}
	
	public void newDoc(Document doc){
		docDao.saveOrUpdate(doc);
	}
	
	public void delDoc(Document doc){
		docDao.deleteDoc(doc);
	}
	
	public void updateDoc(Document doc){
		docDao.saveOrUpdate(doc);
	}
	
	public Document getDocument(Long id){
		return docDao.getDocByID(id);
	}

}
